package br.com.inovati.linkers.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.com.inovati.linkers.services.EmailServiceRemote;

import com.sun.xml.registry.uddi.bindings_v2_2.Email;

@Stateless
public class EmailServiceImpl implements EmailServiceRemote {

	@PersistenceContext(unitName = "linkers")
	private EntityManager em;

	@Override
	public Email inserir(Email email) {
		em.persist(email);
		return email;
	}
}